<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Image Icons</title>
</head>

<body>

<table width="100%" border="0">
    <tr>
    <td id="header" height="90" colspan="3">
        <h1>
Achievement Icons:
</h1>
<h4>          <em><hr>Copy and paste the image code.<hr /><br /></em></h4>    </td>
    </tr> 
    
</table>

<?php
$path = './';
$dir_handle = @opendir($path) or die('Unable to open ' . $path);
$array = array();
while (($file = readdir($dir_handle)) !== false)
{
if ($file != '.' && $file != '..')
{
$pathinfo = pathinfo($file);
if (isset($pathinfo['extension'])) {$ext = strtolower($pathinfo['extension']);} else {$ext = '';}
if ($ext == 'png' || $ext == 'jpg') {$array[] = $file;}
}
}

if ($array)
{
sort($array);

echo '<ul>';
foreach ($array as $value)
{
echo '<li><font face="tahoma"><img src="' . $path . $value . '" /><textarea name="comments" cols="10" rows="1">' . $value . '</textarea></li>' . "\n</font>";

}
echo '</ul>';
echo 'This page by <a href="http://gorclan.com">DarthNinja</a>';
}
?>
</body>
</html>